import axios from '@/utils/index';

class ProjectInformation {

    static async getDetail() {
      const res = axios.get('/ProjectInformation')
      return res
    }
  
    static async addData({data}) {
      const res = axios.post('/ProjectInformation',
        data
        )
      return res
    }

    static async getId(id) {
      const res = axios.get(`/ProjectInformation/${id}`)
      return res
    }

    static async deleteData(id){
      const res = axios.delete(`/ProjectInformation/${id}`)
      return res
    }

    static async updata({data}) {
      const res = axios.put('/ProjectInformation',
        data
        )
      return res
    }

    static async putAddPsupport(id) {
      const res = axios.put(`/ProjectInformation/psupportAdd/${id}`)
      return res;
    }
  }
  
  export default ProjectInformation